<html lang="zh">

<head>
<meta charset="utf-8">
    <title>回调函数(callback)</title>
    <script src="../zujian/han/han.js"></script>

</head>

<body>


<script language="javascript" type="text/javascript">
    function a(callback)
    {
        hwrite("我是parent函数a！");
        hwrite("调用回调函数");
        callback();
    }
    function b(){
        hwrite("我是回调函数b");

    }
    function c(){
        hwrite("我是回调函数c");

    }

    function test()
    {
        a(b);
        a(c);
    }
test();
</script>
</body>

</html>